Updating App Configuration with the API

Using this API you can update app configuration on runtime without restarting the app instance.

To update app attributes you need the following:

  • App ID — ID of the app to be accessed, which can be retrieved using the GET /v1/dp/apps method.

  • The engine variable FLOGO_APP_PROP_RECONFIGURE should be set to true for that particular app.

    Procedure
  1. Use the PUT /v1/dp/apps/{appId}/config/refresh method to update the application variables of an existing app on runtime without restarting the app instance. Include the application variables you want to change in the model.

  2. Use one the following engine variables along with FLOGO_APP_PROP_RECONFIGURE to update the app configuration.

    1. FLOGO_APP_PROPS_AWS
    2. FLOGO_APP_PROPS_CONSUL
    Note: The list of config in key value pairs to update the app properties must be identical to its counterpart (app property) in the Applicon Propertiesati dialog in Flogo. If the parameter names do not match exactly, a warning message is displayed, and the app uses the default value that you configured for the property in Flogo.